﻿CREATE TABLE [dbo].[MIAP_PERFIL_URL] (
    [ID_PERFIL_URL]         INT            IDENTITY (1, 1) NOT NULL,
    [NOMBRE]                NVARCHAR (50)  NOT NULL,
    [DESCRIPCION]           NVARCHAR (250) NULL,
    [URL]                   NVARCHAR (150) NOT NULL,
    [USUARIO_CREACION]      NVARCHAR (50)  NOT NULL,
    [FECHA_CREACION]        DATETIME       NOT NULL,
    [USUARIO_ACTUALIZACION] NVARCHAR (50)  NOT NULL,
    [FECHA_ACTUALIZACION]   DATETIME       NOT NULL,
    CONSTRAINT [PK_BIT_PERFIL_URL] PRIMARY KEY CLUSTERED ([ID_PERFIL_URL] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Tabla de permisos que podra tener un perfil', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'MIAP_PERFIL_URL';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Identificador unico del permiso', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'MIAP_PERFIL_URL', @level2type = N'COLUMN', @level2name = N'ID_PERFIL_URL';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Nombre del permiso al que se refiere', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'MIAP_PERFIL_URL', @level2type = N'COLUMN', @level2name = N'NOMBRE';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'breve descripcion del permiso', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'MIAP_PERFIL_URL', @level2type = N'COLUMN', @level2name = N'DESCRIPCION';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Url de la pagina a la que sera redireccionado', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'MIAP_PERFIL_URL', @level2type = N'COLUMN', @level2name = N'URL';

